<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function $$(id){
				return document.getElementById(id)
			}
			window.onload=function(){
				var cnv=$$("canvas")
				var cxt=cnv.getContext("2d")
				cxt.fillStyle="hotpink"
				cxt.fillRect(50,50,80,80)
				cxt.clearRect(50,60,50,50)
			}
		</script>
	</head>
	<body>
			<canvas id="canvas"width="200"height="150"style="border: 1px dashed gray;"></canvas>
	</body> 
</html>
